#!/usr/bin/expect
spawn telnet 127.0.0.1 2000
expect "#"
send "show stat\r\n"
expect "#"
send "exit\r\n"
interact
